<template>
  <div>
    <el-dialog title="锁定原因" :visible.sync="open" width="600px">
      <el-table v-loading="loading" :data="[tableData]">
        <el-table-column prop="userName" label="封号人" width="120">
        </el-table-column>
        <el-table-column prop="desc" label="原因" width="250">
        </el-table-column>
        <el-table-column prop="createTime" label="封号时间"> </el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>
<script>
import { queryLastLock } from "@/api/userList";
export default {
  data() {
    return {
      open: false,
      loading: false,
      tableData: {},
    };
  },
  methods: {
    show(userSn) {
      this.open = true;
      this.loading = true;
      this.tableData = {}
      queryLastLock({ userSn: userSn }).then((res) => {
        this.loading = false;
        this.tableData = res.data.resultData;
      });
    },
  },
};
</script>